#define _CRT_SECURE_NO_WARNINGS

#include<stdio.h>
#include<assert.h>

char* my_strcpy(char* dest, const char* sour)
{
	assert(dest && sour);
	char* ret = dest;
	while (*dest++ = *sour++)
	{
		;
	}

	return ret;
}

int main()
{
	char arr1[] = "xxxxxxxxx";
	char arr2[] = "abcd";
	
	printf("%s\n", my_strcpy(arr1, arr2));

	return 0;
}

